import moment from "moment";
export function dateTimeFormatFun(dataStr) {
  if (dataStr == null || dataStr == undefined || dataStr == "") {
    return "";
  }
  return moment(dataStr).format("YYYY-MM-DD");
  console.log(dataStr.split("T")[1])
  if (dataStr.split("T")[1] == "00:00:00" || dataStr.split("T")[1] == "16:00:00.000Z") {
    
  } else {
    return moment(dataStr).format("YYYY-MM-DD HH:mm:ss");
  }
}
